<?php  

require_once("../include/conn.php");

if($_REQUEST["action"] == "update")
{	
//if(!empty($_REQUEST[id])){
//$id=$_REQUEST[id];

$ndzrw=$_REQUEST["ndzrw"];
$mbdate=$_REQUEST["mbdate"];
$rjbl=$_REQUEST["rjbl"];

 $sql_dj="UPDATE `$tb_dj` SET `ndzrw` = '$ndzrw',`mbdate` = '$mbdate',`rjbl` = '$rjbl' WHERE `id` = '1'";
$cn_dj = mysql_db_query($db_name,$sql_dj);

?>
<script language="JavaScript" type="text/JavaScript">
alert("更新成功!");
</script>

<?php
 echo "<script language='javascript'>";
echo "self.location="."'"."djsp_update.php'";
echo "</script>";	
 
//   }
}?>


